// import Config from '@/config'
const user = {
	state: {
		token: null,
		userInfo: {}
	},
	mutations: {
		setToken(state, value) {
			state.token = value;
		},
		setUserInfo(state, data) {
			state.userInfo = data;
		},
		updateUserInfo(state, data) {
			state.userInfo[data.key] = data.value;
		}
	},
	actions: {}
}
export default user;